<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/maa.tld" prefix="m" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setLocale value="${language}"/>
<fmt:bundle basename="messages" prefix="admin.">
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="shortcut icon" href="${pageContext.servletContext.contextPath}/static/yin.ico">

        <title><fmt:message key="title"/></title>

        <link href="${pageContext.servletContext.contextPath}/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="${pageContext.request.contextPath}/css/admin-cabinet.css" rel="stylesheet">

        <script src="../../assets/js/ie8-responsive-file-warning.js"></script>

        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>

        <style id="holderjs-style" type="text/css"></style>

    </head>

    <body>

    <div class="navbar-wrapper">
        <div class="container-fluid">
            <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse"
                                data-target=".navbar-collapse">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="/maa/do?action=main"> <img
                                src="${pageContext.servletContext.contextPath}/static/ics.png"/>Silver Dragon</a>
                    </div>
                    <div class="navbar-collapse collapse">
                        <ul class="nav navbar-nav navbar-right">
                            <li><a><strong><fmt:message key="greet"/> ${user.name} ${user.surname}!</strong></a></li>
                            <li><a href="/maa/do?action=main"><fmt:message key="main"/></a></li>
                            <m:language/>
                            <li>
                                <form action="/maa/do" method="post">
                                    <input type="hidden" name="action" value="logout">
                                    <input class="btn btn-default navig" type="submit"
                                           value="<fmt:message key="logout"/>"/>
                                </form>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3 col-md-2 sidebar">
                <ul class="nav nav-sidebar">
                    <li><h4><fmt:message key="overview"/></h4></li>
                    <li><a href="/maa/do?action=view-courses"><fmt:message key="courses"/></a></li>
                    <li><a href="/maa/do?action=view-users"><fmt:message key="clients"/></a></li>
                    <li><a href="/maa/do?action=view-mentors"><fmt:message key="mentors"/></a></li>
                    <li><a href="/maa/do?action=view-groups-dash"><fmt:message key="groups"/></a></li>
                </ul>
                <ul class="nav nav-sidebar">
                    <li><h4><fmt:message key="create"/></h4></li>
                    <li><a href="/maa/do?action=course-creation"><fmt:message key="newc"/></a></li>
                    <li><a href="/maa/do?action=user-creation"><fmt:message key="newu"/></a></li>
                </ul>
            </div>
            <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                <h1 class="page-header"><fmt:message key="dash"/></h1>

                <div class="row placeholders">
                    <div class="col-sm-3 placeholder">
                        <a href="/maa/do?action=view-courses"><img class="img-responsive" alt="Courses"
                                                                   src="${pageContext.servletContext.contextPath}/static/adm2.jpg"></a>

                        <p>

                        <form action="/maa/do">
                            <input type="hidden" name="action" value="view-courses"/>
                            <input class="btn btn-default mybtn" type="submit" value="<fmt:message key="courses"/>"/>
                        </form>
                        </p>
                    </div>
                    <div class="col-sm-3 placeholder">
                        <a href="/maa/do?action=view-users"><img class="img-responsive" alt="Users"
                                                                 src="${pageContext.servletContext.contextPath}/static/adm1.jpg">
                        </a>

                        <p>

                        <form action="/maa/do">
                            <input type="hidden" name="action" value="view-users"/>
                            <input class="btn btn-default mybtn" type="submit" value="<fmt:message key="clients"/>"/>
                        </form>
                        </p>
                    </div>
                    <div class="col-sm-3 placeholder">
                        <a href="/maa/do?action=view-mentors"><img class="img-responsive" alt="Mentors"
                                                                   src="${pageContext.servletContext.contextPath}/static/adm3.jpg"></a>

                        <p>

                        <form action="/maa/do">
                            <input type="hidden" name="action" value="view-mentors"/>
                            <input class="btn btn-default mybtn" type="submit" value="<fmt:message key="mentors"/>"/>
                        </form>
                        </p>
                    </div>
                    <div class="col-sm-3 placeholder">
                        <a href="/maa/do?action=view-groups-dash"><img class="img-responsive" alt="Groups"
                                                                       src="${pageContext.servletContext.contextPath}/static/adm4.jpg"></a>

                        <p>

                        <form action="/maa/do">
                            <input type="hidden" name="action" value="view-groups-dash"/>
                            <input class="btn btn-default mybtn" type="submit" value="<fmt:message key="groups"/>"/>
                        </form>
                        </p>
                    </div>
                </div>

                <c:if test="${not empty logs}">
                    <h2 class="sub-header"><fmt:message key="logs"/></h2>

                    <p><m:logs logs="${logs}" pages="${pages}" page="${page}"/></p>
                </c:if>

            </div>
        </div>
    </div>

    <script src="./Dashboard Template for Bootstrap_files/jquery.min.js"></script>
    <script src="./Dashboard Template for Bootstrap_files/bootstrap.min.js"></script>
    <script src="./Dashboard Template for Bootstrap_files/docs.min.js"></script>


    </body>
    </html>
</fmt:bundle>